package day9;

import java.util.Scanner;

public class t4 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        String arr= sc.next();
        String overturnArr=overturn(arr);
        System.out.println(overturnArr);
    }
    public static String overturn (String arr){
        String arr1="";
        for(int i=0;i<arr.length();i++){
            arr1+=arr.charAt(arr.length()-1-i);
        }
        return arr1;
    }

}
